home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / mode_msg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-06  |  4.3 KB  |  98 lines

  1. /*  SVGATextMode -- An SVGA textmode manipulation/enhancement tool
  2.  *
  3.  *  Copyright (C) 1995,1996  Koen Gadeyne
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. /***
  21.  *** mode_msg: messages used for mode data grabbing
  22.  ***/
  23.  
  24. #ifndef _MODE_MSG_H
  25. #define _MODE_MSG_H
  26.  
  27.  
  28. #define MSGSTR_GOLDEN_RATIO \
  29.         "the `Golden Ratio' (X/Y is around 4/3) rule suggested this.\n"
  30.         
  31. msg_str mode_messages[] = {
  32.       { MSG_VTIM_MOD ,
  33.            "Vertical timings were modified because they wrapped around (probably at 1024)\n" },
  34.       { MSG_HTIM_MOD ,
  35.            "Horizontal timings were modified because they wrapped around (probably at 2048)\n" },
  36.       { MSG_GOLDENRATIO_X_CGA ,
  37.            "Horizontal timings were divided by 2 because\n"
  38.            MSGSTR_GOLDEN_RATIO
  39.            "This could be a CGA-emulation mode.\n" },
  40.       { MSG_GOLDENRATIO_X_HICOLOR ,
  41.            "Horizontal timings were divided by 2, 3 or 4 because\n"
  42.            MSGSTR_GOLDEN_RATIO
  43.            "This could be a Hi/TrueColor (15/16 or 24-bit) mode\n" },
  44.       { MSG_GOLDENRATIO_Y_INTERLACE ,
  45.            "Vertical Timings were multiplied by 2 because\n"
  46.            MSGSTR_GOLDEN_RATIO
  47.            "This could be an interlaced mode.\n" },
  48.       { MSG_CLOCK_MEASUREMENTS ,
  49.            "Only %d%% of measurements were considered 'valid',\n"
  50. #ifdef DOS
  51.            "If this were UNIX, then your system could just be under severe load.\n"
  52.            "But... Since it isn't, MS-Winslows (DOS box) could be the reason.\n"
  53. #else
  54.            "Your system is probably under heavy load.\n"
  55. #endif
  56.            "The clock measurement you get can be inaccurate!\n" },
  57.        { MSG_INTERLACE ,
  58.            "Vertical timings were adjusted because\n"
  59.            MSGSTR_GOLDEN_RATIO
  60.            "This could be an interlaced mode.\n"
  61.            "(if it is not, the adjustments are probably wrong)\n" },
  62.        { MSG_BAD_HSYNC_STOP ,
  63.            "Hsync stop is beyond total screen width.\n"
  64.            "This mode was not constructed properly.\n" },
  65.        { MSG_BAD_VSYNC_STOP ,
  66.            "Vsync stop is beyond total screen height.\n"
  67.            "This mode was not constructed properly.\n" },
  68.        { MSG_PRESET_VTIM_MOD ,
  69.            "Vertical timings were modified because the given screen height suggested this.\n" },
  70.        { MSG_PRESET_HTIM_MOD ,
  71.            "Horizontal timings were modified because the given screen width suggested this.\n" },
  72.        { MSG_PRESET_X_WRONG ,
  73.            "Error: The given screen width does not match with the data read from the VGA registers.\n" },
  74.        { MSG_PRESET_Y_WRONG ,
  75.            "Error: The given screen height does not match with the data read from the VGA registers.\n" },
  76.        { MSG_16BPP ,
  77.            "The given screen width suggests this is a 15/16BPP (HiColor) mode.\n" },
  78.        { MSG_24BPP ,
  79.            "The given screen width suggests this is a 24BPP (packed TrueColor) mode.\n" },
  80.        { MSG_32BPP ,
  81.            "The given screen width suggests this is a 32BPP (sparse TrueColor) mode.\n" },
  82.        { MSG_IS_INTERLACE ,
  83.            "The given screen height suggests this is an interlaced mode.\n" },
  84.        { MSG_CGA ,
  85.            "The given screen height suggests this is a CGA emulation mode.\n" },
  86.        { MSG_WEIRD ,
  87.            "The aspect ratio of this mode is very strange. The probed values are probably wrong somewhere.\n" },
  88.        { MSG_Y_WRAP_COMPENSATE ,
  89.            "The probed vertical size of this mode was extremely small.\n"
  90.            "It has been increased with a multiple of 1024 until the timings looked more reasonable.\n" },
  91.        { MSG_CLOCKPROBE_FAILED ,
  92.            "The clock probe failed. This is most probably because there was no video clock at all.\n" },
  93.        { -1 , NULL }
  94. };
  95.  
  96. #endif
  97.  
  98.